Skip to content

Conversation

@fwiesel
Copy link
Contributor

@fwiesel fwiesel commented Dec 11, 2025

As we want also human operators to modify the CRO, at the very least to set a hypervisor into maintenance, we need top-level visiblity of such an action.

The HypervisorTaintController will check the managedFields for any modification through kubeclt (kubectl-apply, kubectl-edit...) and add a condition, which is prominently displayed in the overview table.

@fwiesel fwiesel requested a review from notandy December 11, 2025 16:12
@fwiesel
Copy link
Contributor Author

fwiesel commented Dec 11, 2025

Maybe that way, we can at least partially reconcile our concerns:

  • The ability to edit the CRO
  • Having visibility about that having happened

@fwiesel fwiesel force-pushed the manual-crd-tainting branch from e286d21 to 525e2fa Compare December 12, 2025 10:07
@github-actions
Copy link

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/api/v1 0.00% (ø)
github.com/cobaltcore-dev/openstack-hypervisor-operator/cmd 0.00% (ø)
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller 37.36% (+0.62%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/api/v1/hypervisor_types.go 0.00% (ø) 0 0 0
github.com/cobaltcore-dev/openstack-hypervisor-operator/cmd/main.go 0.00% (ø) 0 0 0
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/hypervisor_taint_controller.go 72.73% (+72.73%) 11 (+11) 8 (+8) 3 (+3) 🌟
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/utils.go 37.25% (+5.34%) 51 (+4) 19 (+4) 32 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/hypervisor_taint_controller_test.go

As we want also human operators to modify the CRO, at the very least to
set a hypervisor into maintenance, we need top-level visiblity of such
an action.

The HypervisorTaintController will check the managedFields for any
modification through kubeclt (kubectl-apply, kubectl-edit...) and add
a condition, which is prominently displayed in the overview table.
@fwiesel fwiesel merged commit ce83228 into main Dec 15, 2025
6 checks passed
@fwiesel fwiesel deleted the manual-crd-tainting branch December 15, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants